home *** CD-ROM | disk | FTP | other *** search
/ PC Open 97 / PC Open 97 CD2.bin / Demo / FileMaker / FileMaker Pro Prova / Files / Data1.cab / openssl_new_cert.bat < prev    next >
Encoding:
DOS Batch File  |  2003-05-27  |  574 b   |  28 lines

  1. @echo off
  2.  
  3. set PASSWORD=password
  4. set CATOP=fmiCA
  5. set CONFIG=openssl.config
  6.  
  7. del %CATOP%\index.txt
  8. echo off > %CATOP%\index.txt
  9.  
  10. openssl req -config %CONFIG% -batch -new ^
  11.     -passout pass:%PASSWORD% ^
  12.     -keyout newreq.pem -out newreq.pem ^
  13.     -days 9999
  14.  
  15. openssl ca -config %CONFIG% -batch ^
  16.     -passin pass:%PASSWORD% -policy policy_anything ^
  17.     -out newcert.pem -infiles newreq.pem
  18.  
  19. copy /Y newcert.pem server.pem
  20. type newreq.pem >> server.pem
  21.  
  22. rmdir fmiCA /S /Q
  23. del newcert.pem
  24. del newreq.pem
  25. del .rnd
  26. del openssl.exe
  27. del openssl.config
  28.